package my.mall.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import my.mall.db.entity.User
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author fengbo
 * @since 2024-04-19
 */
interface UserMapper : BaseMapper<User> {

    fun payByIntegral(@Param("userId") userId: Long?, @Param("amount") amount: Int): Int

    fun updateSmsCode(@Param("item") user: User?): Int
}
